﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _008_子类的构造函数
{
    internal class BaseClass
    {
        public int attack;
        public int hp;
        public int speed;

        public BaseClass()
        {
            Console.WriteLine("BaseClass");
        }
        public BaseClass( int hp, int speed)
        {
          
            this.hp = hp;
            this.speed = speed;
        }
    }
}
